let express = require("express");
let router = express.Router();
let nrj = require("./API/index");

// 获取全部
router.get("/all", nrj.all);
// 注册
router.post("/signup", nrj.signup);
// 登录
router.get("/login", nrj.login);
// 加入购物车
router.post("/addshoppingcart", nrj.addshoppingcart);
// 获取购物车
router.get("/shoppingcarts", nrj.shoppingcarts);
// 修改购物车
router.post("/setshoppingcart", nrj.setshoppingcart);
// 添加购买记录
router.post("/setPurchaseRecord", nrj.setPurchaseRecord);
// router.get("/allshop", nrj.allshop);
// 获取购买记录getPurchaseRecord
router.get("/getPurchaseRecord", nrj.getPurchaseRecord);

module.exports = router;
